import Mock from "mockjs";

// 生成数据
const {kinds} = Mock.mock({
    kinds: [
        {
            icons: '../../assets/images/位置 (1).png',
            title: '选城市'
        },
        {
            icons: '../../assets/images/行李箱.png',
            title: '看游记'
        },
        {
            icons: '../../assets/images/pol.png',
            title: '必游榜'
        },
        {
            icons: '../../assets/images/酒店02.png',
            title: '选酒店'
        },
        {
            icons: '../../assets/images/攻略.png',
            title: '找攻略'
        }
    ]
})

// 生成一个添加数据的接口
Mock.mock('/api/getProListData', 'post', (config) => {
    // console.log(JSON.parse(config.body));
    const req = JSON.parse(config.body)
    return {
        code: 200,
        message: '获取数据成功',
        data:{
            kinds
        }
    }
})